//
//  ZLTitleModel.m
//  TripTogether
//
//  Created by dllo on 15/12/23.
//  Copyright © 2015年 王军岐. All rights reserved.
//

#import "ZLTitleModel.h"


@implementation ZLTitleModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"data"]) {
        [self setDatas:value];
    }
}

-(void)setDatas:(NSMutableArray *)datas
{
    if (_datas != datas) {
        _datas = datas;
    }
    NSMutableArray *tempArray = [NSMutableArray array];
    for (NSMutableDictionary *dic in _datas) {
        ZLDataMOdel *zlDataM = [ZLDataMOdel new];
        [zlDataM setValuesForKeysWithDictionary:dic];
        [tempArray addObject:zlDataM];
    }
    _datas = [NSMutableArray arrayWithArray:tempArray];
}

//-(void)setBanners:(NSMutableArray *)banners
//{
//    if (_banners != banners) {
//        _banners = banners;
//    }
//    NSMutableArray *arr = [NSMutableArray array];
//    for (NSMutableDictionary *dic in _banners) {
//        ZLBannersModel *zlBannersM = [ZLBannersModel new];
//        [zlBannersM setValuesForKeysWithDictionary:dic];
//        [arr addObject:zlBannersM];
//    }
//    _banners = [NSMutableArray arrayWithArray:arr];
//}


@end
